class Mess {
  final String type;
  final dynamic data;
  const Mess({required this.type, required this.data});

  Map toJson() {
    Map<String, dynamic> map = <String, dynamic>{};
    map['type'] = type;
    map['data'] = data;
    return map;
  }
}
